<h2>Ingresar al sistema</h2>
<%@title_view = 'Usuarios'%>

<% flash.each do |name, msg| %>
    <div id = error_explanation>
      <%= content_tag :div, msg, :id => "flash_#{name}" %>
    </div>
  <% end %>

<div class="shadow" style="width: 400px; padding-top: 15px; height: 205px; margin: auto;">
  
  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|%>
    <%= devise_error_messages! %>
    <p<label style = "margin-left: 30px" >Usuario</label>
      <%= f.text_field :username, :style => "margin-left: 30px" %></p>

    <p<label style = "margin-left: 30px">Contraseña</label>
      <%= f.password_field :password, :style => "margin-left: 30px"  %></p>

    <div style = "width: 190px; float: left; margin-left: 30px">
    <%= link_to "Olvidé mi contraseña", new_password_path(resource_name) %> <br />
    <%= link_to 'Solicitar usuario',new_user_registration_path%>
    </div>

    <div style = "width: 135px; float: left">
    <p style><%= f.submit "Ingresar", :style => "margin-top: 0px"%></p>
    </div>
    
  <% end %>
</div>

